<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Gold Bach Conjecturer</title>
  <script>
  var number = parseInt(prompt("输入一个偶数"));
  console.log(gbConjecturer(number));
  function isFactorial(num)
  {
    var n = parseInt(num / 2);
    for (var i = 2; i <= n; i++)
    {
      if (num % i == 0)
        return false;
    }
    return true;
  }

  function gbConjecturer(num)
  {
    for (var i = 2; i < num; i++)
    {
      if (isFactorial(i) && isFactorial(num - i))
        return true;
    }
    return false;
  }
  </script>
</head>
<body>
  
</body>
</html>